package com.clss.commandhelper.tools;

import android.Manifest;

/**
 * Created by liuv on 2017/10/24.
 */

public class Constant {

    public static final String APP_TOKEN = "APP_TOKEN";
    public static final int UNKNOW_ERROR_CODE = -1;
    public static final String UNKNOW_ERROR_MESSAGE = "unknow error";
    public static final int SESSION_TIMEOUT = 99;

    public static final int REQUEST_CODE_IMAGE = 123;
    public static final int REQUEST_CODE_CAMARE = 223;
    public static final int REQUEST_CODE_VIDEO = 323;
    public static final int REQUEST_CODE_VIDEO_CAMERA = 423;
    public static final int REQUEST_PERMISSION_CODE = 515;

    public static final String TIMEOUT_EXCEPTION = "java.net.SocketTimeoutException";
    public static final String ACTIVITY_NAME = "activity_name";
    public static final String JAVASCRIPT_ANDROID_TAG = "android";

    public static final String[] sPermissionsArray = {
            Manifest.permission.CAMERA,
            Manifest.permission.RECORD_AUDIO,
            Manifest.permission.ACCESS_FINE_LOCATION,
            Manifest.permission.ACCESS_COARSE_LOCATION,
            Manifest.permission.READ_EXTERNAL_STORAGE,
            Manifest.permission.WRITE_EXTERNAL_STORAGE,
            Manifest.permission.READ_PHONE_STATE,
            Manifest.permission.CHANGE_WIFI_STATE,
    };

    public static final int TYPE_IMAGE = 1;
    public static final int TYPE_VIDEO = 2;
    public static final int TYPE_VOICE = 3;
    public static final int TYPE_TEXT = 4;

    public static final String VIDEO_CASE_INFO = "VIDEO_CASE_INFO";
    public static final String CALL_TYPE = "CALL_TYPE";

    public static final String ID = "id";
    public static final String NAME = "name";
    public static final String CREATOR = "creator";
    public static final String INVITEE = "invitee";
    public static final String INVITER = "inviter";
    public static final String CASE_ID = "caseId";
    public static final String CHAT_TOPIC = "/topic/chat.message.";
    public static final String CHAT_MESSAGE = "CHAT_MESSAGE";
    public static final String CHAT_LOGIN = "CHAT_LOGIN";
    public static final String CHAT_LOGOUT = "CHAT_LOGOUT";
    public static final String CHAT_TEST = "CHAT_TEST";
    public static final String CHAT_SELECTION = "CHAT_SELECTION";
    public static final String CHAT_HEART = "已连接";

    /** 0x001-接受消息  0x002-发送消息**/
    public static final int CHAT_ITEM_TYPE_LEFT = 0x001;
    public static final int CHAT_ITEM_TYPE_RIGHT = 0x002;
    /** 0x003-发送中  0x004-发送失败  0x005-发送成功**/
    public static final int CHAT_ITEM_SENDING = 0x003;
    public static final int CHAT_ITEM_SEND_ERROR = 0x004;
    public static final int CHAT_ITEM_SEND_SUCCESS = 0x005;

    public static final String SEND_IMAGE_MSG_TAG_START = "[img]";
    public static final String SEND_IMAGE_MSG_TAG_END = "[/img]";
    public static final String SEND_VOICE_MSG_TAG_START = "[voice]";
    public static final String SEND_VOICE_MSG_TAG_END = "[/voice]";
    public static final String SEND_VIDEO_MSG_TAG_START = "[video]";
    public static final String SEND_VIDEO_MSG_TAG_END = "[/video]";
    public static final String SEND_ADDRESS_MSG_TAG_START = "[address]";
    public static final String SEND_ADDRESS_MSG_TAG_END = "[/address]";
    public static final String SEND_LATLNG_MSG_TAG_START = "[latlng]";
    public static final String SEND_LATLNG_MSG_TAG_END = "[/latlng]";

    public static final String JANUS_HANGUP_ICE_FAILED = "ICE failed";

    //未知类型用户
    public static final int UNKNOWN = 0;
    //普通用户
    public static final int VOLUNTEER = 1;
    //高级用户
    public static final int SENIOR_VOLUNTEER = 2;
    //警察
    public static final int OFFICER = 3;
    //线索基本配置人员
    public static final int CLUE_BASIC_ADMIN = 20;
    //警务机构采集员
    public static final int POLICE_UNIT_COLLECTOR = 21;
    //警务机构审核员
    public static final int POLICE_UNIT_AUDITOR = 22;
    //线索单位配置人员
    public static final int CLUE_TYPE_ADMIN = 23;
}
